require 'rubygems'
require 'pdf/reader'
require 'pdf/writer'
require 'pp'

$KCODE = 'u'
require 'jcode'
require 'iconv'
require 'base64'



pdf_filename = ARGV[0]

receiver = PDF::Reader::RegisterReceiver.new
pdf = PDF::Reader.file(pdf_filename, receiver)
    receiver.callbacks.each do |cb|
    pp cb
  end


